<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <script src="../build/react.js"></script>
  <script src="../build/react-dom.js"></script>
  <script src="../build/browser.min.js"></script>
  <title>demo6</title>
</head>
<body>
  <script type="text/babel">

    var MyTitle = React.createClass({
      propTypes: {
        title: React.PropTypes.string.isRequired,
      },
      render: function(){
        return <h1>{this.props.title}</h1>
      }
    });

    var data = 123;
    ReactDOM.render(
      <MyTitle title={data} />,
      document.body
    );
  </script>
</body>
</html>